package com.xh.bussiness.jingyou.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 菁优网账号接口剩余调用次数
 * </p>
 *
 * @author JQM
 * @since 2019-11-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("jy_user_interface_last")
public class JYUserInterfaceLast extends Model {

    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * jy_user_id
     */
    private String jyUserId;

    /**
     * 接口
     */
    private Integer jyInterface;

    /**
     * 剩余数
     */
    private Integer lastCount;

    /**
     * 总数
     */
    private Integer totalCount;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
